/*
 * Copyright 2018 JDCLOUD.COM
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http:#www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * 
 * 
 *
 * 
 * Contact: 
 *
 * NOTE: This class is auto generated by the jdcloud code generator program.
 */


using System;
using System.Collections.Generic;
using System.Text;

using JDCloudSDK.Disk.Model;

namespace JDCloudSDK.Vm.Model
{

    /// <summary>
    ///  快照策略
    /// </summary>
    public class SnapshotPolicy
    {

        ///<summary>
        /// 策略id
        ///</summary>
        public string Id{ get; set; }
        ///<summary>
        /// 策略名称
        ///</summary>
        public string Name{ get; set; }
        ///<summary>
        /// 用户pin
        ///</summary>
        public string Pin{ get; set; }
        ///<summary>
        /// 策略执行间隔，单位:秒
        ///</summary>
        public int? Interval{ get; set; }
        ///<summary>
        /// 策略生效时间。格式&#x60;YYYY-MM-DDTHH:mm:ss+xx:xx&#x60;。如&#x60;2020-02-02T20:02:00+08:00&#x60;
        ///</summary>
        public string EffectiveTime{ get; set; }
        ///<summary>
        /// 策略上次执行时间。格式&#x60;YYYY-MM-DDTHH:mm:ss+xx:xx&#x60;。如&#x60;2020-02-02T20:02:00+08:00&#x60;
        ///</summary>
        public string LastTriggerTime{ get; set; }
        ///<summary>
        /// 策略下次执行时间。格式&#x60;YYYY-MM-DDTHH:mm:ss+xx:xx&#x60;。如&#x60;2020-02-02T20:02:00+08:00&#x60;
        ///</summary>
        public string NextTriggerTime{ get; set; }
        ///<summary>
        /// 快照保留时间。单位:秒。0：永久保留
        ///</summary>
        public int? SnapshotLifecycle{ get; set; }
        ///<summary>
        /// 联系人信息
        ///</summary>
        public ContactInfo ContactInfo{ get; set; }
        ///<summary>
        /// 策略下次执行时间。格式&#x60;YYYY-MM-DDTHH:mm:ss+xx:xx&#x60;。如&#x60;2020-02-02T20:02:00+08:00&#x60;
        ///</summary>
        public string CreateTime{ get; set; }
        ///<summary>
        /// 策略下次执行时间。格式&#x60;YYYY-MM-DDTHH:mm:ss+xx:xx&#x60;。如&#x60;2020-02-02T20:02:00+08:00&#x60;
        ///</summary>
        public string UpdateTime{ get; set; }
        ///<summary>
        /// 策略状态。1：启用 2：禁用
        ///</summary>
        public int? Status{ get; set; }
        ///<summary>
        /// 策略绑定的disk数量
        ///</summary>
        public int? DiskCount{ get; set; }
    }
}
